package aps

import glory.xxd.Utils

/**
 * 批次开始-主页 eqp和lot解绑
 */
class RemoveEQPLotController {

    def commentService

    def index() {
        def EQPID = params.EQPID ?: ""
        def USERNAME = params.USERNAME ?: ""
        print(EQPID)
        def body = CommentParams.newInstance()
        body.setEQPID(EQPID)
        body.setUSERNAME(USERNAME)
        String logUUID = Utils.getUUID();
        Header header = Header.newInstance()
        header.setMESSAGENAME("RemoveEQPLot");
        header.setTRANSACTIONID(logUUID);
        def json = commentService.getJsonByObjectForTopic2Queue(logUUID, header, body)

        render json
    }
}
